﻿$(function () {
    AddGMenu('.login-button-arrow, .login-button-email', '.id-login-button-arrow');
    AddGMenu('.top-bar-settings-button', '.id-top-bar-settings-button');
});

function AddGMenu(gToogle, mContainer) {
    $(gToogle).click(function () { $('.goog-menu').hide(); $(mContainer).show(); });
    $(mContainer).find('.goog-menuitem').hover(function () {
        $(this).toggleClass('goog-menuitem-hover');
    }, function () {
        $(this).toggleClass('goog-menuitem-hover');
    });
};